package cn.kgc.mst.service.impl;

import cn.kgc.mst.common.Const;
import cn.kgc.mst.dao.UserMapper;
import cn.kgc.mst.entity.User;
import cn.kgc.mst.service.UserService;
import cn.kgc.mst.util.DataSourceChnage;
import cn.kgc.mst.util.MultipleDataSource;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 韩
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;


    public List<User> queryAll() {
        return userMapper.query();
    }

    public void insertUser(User user) {
        userMapper.add(user);
    }
}
